package com.mdp.structural.proxy;

public class Proxy implements IComponent {
    private IComponent sourcer;
    
    public Proxy(IComponent sourcer) {
        this.sourcer = sourcer;
    }
    
    public void execute() {
        before();
        sourcer.execute();
        after();
    }
    
    public void before() {
    }
    
    public void after() {
    }
}
